;
(function() {
  'use strict';
  angular.module('controllers.dataManager.dataQualityApplication', [])
    .controller('dataQualityApplicationCtrl', dataQualityApplicationCtrl);

  function dataQualityApplicationCtrl($scope, dataQualityApplicationService, CoreService) {
    $scope.pageInfo = dataQualityApplicationService;
    var spans = ['/systemIndexApplication', '/businessForecasting', '/alarmForecast', '/dataConllectionMgmt'];
    $scope.selectedIndex = CoreService.navgit(spans);
    $scope.$on('$stateChangeSuccess', function(event, state) {
      $scope.selectedIndex = spans.indexOf(state.url);
    });
  }

  dataQualityApplicationCtrl.$inject = ['$scope', 'dataQualityApplicationService', 'CoreService', '$rootScope'];
})();
